package com.icss.th.subjects.pojo;

import java.util.List;

public class Subject 
{
	private int id;
	
	private String name;
	
	private int level;
	
	private List<Subject> children;
	
	private Subject parent;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public List<Subject> getChildren() {
		return children;
	}

	public void setChildren(List<Subject> children) {
		this.children = children;
	}

	public Subject getParent() {
		return parent;
	}

	public void setParent(Subject parent) {
		this.parent = parent;
	}
	
	public Subject(int id, String name, int level)
	{
		this.id = id;
		this.name = name;
		this.level = level;
	}
	
	public Subject(int id, String name, int level, Subject parent)
	{
		this.id = id;
		this.name = name;
		this.level = level;
		this.parent = parent;
	}
}
